package com.kevin.netty.starter.preperties;

import io.netty.handler.ssl.ClientAuth;
import io.netty.handler.ssl.SslProvider;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@Component
public class SslProperties implements Serializable {

    @Serial
    private static final long serialVersionUID = -4517701373101429752L;

    private boolean enabled;

    private String caCert;

    private String serverCert;

    private String serverPrivateKey;

    private SslProvider sslProvider;

    private String[] protocols;

    private ClientAuth clientAuth;

    private long sessionTimeout;

}
